package com.qys.livesMall.shop.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.shop.modal.dto.BuyDataPackageDTO;
import com.qys.livesMall.shop.modal.dto.PayDataPackageDTO;
import com.qys.livesMall.shop.modal.dto.QueryAddressDTO;
import com.qys.livesMall.shop.modal.dto.QueryAddressVO;
import com.qys.livesMall.shop.modal.entity.H2DataPackage;

import java.util.List;

/**
 * 流量包表(H2DataPackage)表服务接口
 *
 * @author makejava
 * @since 2023-06-20 13:43:49
 */
public interface H2DataPackageService extends IService<H2DataPackage> {

    /**
     * 店铺购买流量包/套餐
     * @param buyDataPackageDTO 实体对象
     * @return 订单号
     */
    String buyDataPackage(BuyDataPackageDTO buyDataPackageDTO);

    /**
     * 付款店铺流量包
     * @param dto PayDataPackageDTO
     */
    void payDataPackage(PayDataPackageDTO dto);

    /**
     * 获取地区
     * @param dto
     * @return
     */
    List<QueryAddressVO> queryAddress(QueryAddressDTO dto);


    List<Tree<Integer>> allAddress();
}

